#!/usr/bin/env bash

if [[ "$(uname -s)" == "Linux" ]]; then
	echo "deb https://mirrors.nju.edu.cn/debian/ trixie main contrib non-free non-free-firmware" | tee /etc/apt/sources.list >/dev/null
	echo "deb https://mirrors.nju.edu.cn/debian/ trixie-updates main contrib non-free non-free-firmware" | tee -a /etc/apt/sources.list >/dev/null
	echo "deb https://mirrors.nju.edu.cn/debian/ trixie-backports main contrib non-free non-free-firmware" | tee -a /etc/apt/sources.list >/dev/null
	echo "deb https://mirrors.nju.edu.cn/debian-security trixie-security main contrib non-free non-free-firmware" | tee -a /etc/apt/sources.list >/dev/null
	apt update
fi
# sudo bash -c "cat >/etc/apt/sources.list <<EOF
# deb https://mirrors.bfsu.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
# deb https://mirrors.bfsu.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
# deb https://mirrors.bfsu.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
# deb https://mirrors.bfsu.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
# EOF"
# bash -c "$(wget https://gitee.com/hevey88/install_script/raw/main/debian13/write_source.sh -O -)"
